package com.lanou.elh.sysmanage.authority_management.mapper;

import com.lanou.elh.sysmanage.authority_management.entity.Role;
import com.lanou.elh.sysmanage.authority_management.entity.RolePerm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    void addRole(Role role);

    void addRolePerm(RolePerm rolePerm);

    void deleteRoleById(Integer id);

    void deletePermById(Integer id);


    void updateRoleById(Role role);

    List<Role> selectRoleList();

    List<String> selectPermissionsByid(Integer id);


}
